package com.wbt.spring.support.config;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author daojin
 * @date 2022/4/12 4:34 下午
 */
public class MyFactoryBean<T> implements FactoryBean<T> {

    private Class<T> myInterface;

    public MyFactoryBean() {
    }

    public MyFactoryBean(Class<T> myInterface) {
        this.myInterface = myInterface;
    }

    @Override
    public T getObject() throws Exception {
        System.out.println("MyFactoryBean getObject.......");
        return null;
    }

    @Override
    public Class<?> getObjectType() {
        System.out.println("MyFactoryBean getObjectType.......");
        return null;
    }
}
